package com.example.plat.enity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "评论实体")
@TableName("comment")
public class Comment {
    @ApiModelProperty("评论ID")
    @TableId(type = IdType.AUTO)
    Long id;

    @ApiModelProperty("活动ID")
    @TableField("act_id")
    Long actId;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    Long userId;

    @ApiModelProperty("用户昵称")
    @TableField("nickname")
    String nickname;

    @ApiModelProperty("用户头像")
    @TableField("avatar")
    String avatar;

    @ApiModelProperty("评论内容")
    @TableField("content")
    String content;

    @ApiModelProperty("评论时间")
    @TableField("time_")
    Long time;
}
